package com.panshi.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class UrlController {



    // 跳转到系统用户页面
    @RequestMapping("/sysuser")
    public String sysuser(){
        return "page/sysuser/sysuser-list";
    }

    // 跳转到系统用户修改页面
    @RequestMapping("/sysuserEdit")
    public String sysUserEdit(){
        return "page/sysuser/sysuser-edit";
    }

    // 跳转到系统用户增加页面
    @RequestMapping("/sysuserAdd")
    public String sysUserAdd(){
        return "page/sysuser/sysuser-add";
    }

    // 跳转到菜单页面
    @RequestMapping("/menu")
    public String menu(){
        return "page/menu/menu-list";
    }

    // 跳转到首页
    @RequestMapping("/index")
    public String index(){
        return "page/index";
    }

    //跳转到菜单功能新增页面
    @RequestMapping("/menuAdd")
    public String menuAdd(){
        return "page/menu/menu-add";
    }

    // 跳转到菜单功能编辑页面
    @RequestMapping("/menuEdit")
    public String menuEdit(){
        return "page/menu/menu-edit";
    }

    // 跳转到角色信息页面
    @RequestMapping("/role")
    public String role(){
        return "page/role/role-list";
    }

    // 跳转到角色新增页面
    @RequestMapping("/roleAdd")
    public String roleAdd(){
        return "page/role/role-add";
    }

    // 跳转到角色新增画面
    @RequestMapping("/roleEdit")
    public String roleEdit(){
        return "page/role/role-edit";
    }


    @RequestMapping("")
    public String login(){

        return "";
    }

}
